package com.ruoyi.binance.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 均价买卖对象 binance_average_buy_sell
 *
 * @author zq
 * @date 2025-09-10
 */
public class BinanceAverageBuySell extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 代码 */
    @Excel(name = "代码")
    private String code;

    /** 下破均价% */
    @Excel(name = "下破均价%")
    private BigDecimal breDown;

    /** 上穿均价% */
    @Excel(name = "上穿均价%")
    private BigDecimal breAbove;

    /** 均价类型 */
    @Excel(name = "均价类型")
    private String avgType;

    /** 自动计算（0正常 1停用） */
    @Excel(name = "自动计算", readConverterExp = "0=正常,1=停用")
    private String auto;

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    public void setBreDown(BigDecimal breDown)
    {
        this.breDown = breDown;
    }

    public BigDecimal getBreDown()
    {
        return breDown;
    }

    public void setBreAbove(BigDecimal breAbove)
    {
        this.breAbove = breAbove;
    }

    public BigDecimal getBreAbove()
    {
        return breAbove;
    }

    public void setAvgType(String avgType)
    {
        this.avgType = avgType;
    }

    public String getAvgType()
    {
        return avgType;
    }

    public void setAuto(String auto)
    {
        this.auto = auto;
    }

    public String getAuto()
    {
        return auto;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("code", getCode())
                .append("breDown", getBreDown())
                .append("breAbove", getBreAbove())
                .append("avgType", getAvgType())
                .append("auto", getAuto())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
